package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 用户签到历史表(SignInHist)实体类
 *
 * @author 杨丽辉
 * @since 2021-03-22 16:26:52
 */
@ApiModel("用户签到历史表")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SignInHist implements Serializable {
    private static final long serialVersionUID = 900109600676251274L;
        /**
    *主键
    * ${column.comment}
    * isnull 1
    */
    @ApiModelProperty(value="$column.comment", position=1)
    private Long signId;

    /**
    * 签到用户编码
    * isnull 0
    */        @ApiModelProperty(value="签到用户编码",position=2)
    private String customerId;
    /**
    * 签到日期(单位精确到日)
    * isnull 0
    */            @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value="签到日期(单位精确到日)",position=3)
    private LocalDate signInDate;
    /**
    * 本次签到奖励金币个数
    * isnull 0
    */        @ApiModelProperty(value="本次签到奖励金币个数",position=4)
    private Integer rewardMoney;
    /**
    * 连续签到天数（A:7天内如果有断签从0开始 B:7天签满从0开始）
    * isnull 0
    */        @ApiModelProperty(value="连续签到天数（A:7天内如果有断签从0开始 B:7天签满从0开始）",position=5)
    private Integer continuiteDay;
    /**
    * 创建时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value="创建时间",position=6)
    private LocalDateTime createTime;
    /**
    * 更新时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value="更新时间",position=7)
    private LocalDateTime updateTime;
        
    public Long getSignId() {
        return signId;
    }

    public void setSignId(Long signId) {
        this.signId = signId;
    }
        
    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }
        
    public LocalDate getSignInDate() {
        return signInDate;
    }

    public void setSignInDate(LocalDate signInDate) {
        this.signInDate = signInDate;
    }
        
    public Integer getRewardMoney() {
        return rewardMoney;
    }

    public void setRewardMoney(Integer rewardMoney) {
        this.rewardMoney = rewardMoney;
    }
        
    public Integer getContinuiteDay() {
        return continuiteDay;
    }

    public void setContinuiteDay(Integer continuiteDay) {
        this.continuiteDay = continuiteDay;
    }
        
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
        
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"signId\":" + signId +
                                  " ,\"customerId\":" + customerId +
                            " ,\"signInDate\":" + signInDate +
                            " ,\"rewardMoney\":" + rewardMoney +
                            " ,\"continuiteDay\":" + continuiteDay +
                            " ,\"createTime\":" + createTime +
                            " ,\"updateTime\":" + updateTime +
                  '}';
    }


}
